<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : confirmCheckout.xsl
    Created on : March 27, 2013, 3:38 PM
    Author     : duonghung1369
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>

    <!-- TODO customize transformation rules 
         syntax recommendation http://www.w3.org/TR/xslt 
    -->
    <xsl:template match="/">
        <div class="confirmation-message">
            <span style="font-weight: bold">Your order has been successfully processed and will be delivered within 2 days.</span>
            <p>Please keep a note of your confirmation number.
                <br/>
    If you have a query concerning your order, feel free to
                <a href="mailto:AntiqueShop@gmail.com">contact us</a>.
            </p>
            <p>Thank you for shopping at the Antique Shop!</p>
        </div>
<!--        <a href="../order/viewCheckoutPDF.html" class="export-cart-PDF"></a>-->
        <form action="../order/viewCheckoutPDF.html" method="POST" target="_blank">
            <input type="hidden" id="input-confirmation-customCartXML" style="display: none;" name="customCartXML" />
            <input type="submit" value="" class="export-cart-PDF" onclick="backToIndex();"/>
        </form>
        <div class="order-summary">
            <table border="0" style="width: 50%;">
                <thead style="background-color: #A1AEFF">
                    <tr>
                        <th colspan="3">Order Summary</th>
                    </tr>
                    <tr style="text-align: center;">
                        <th>Product</th>
                        <th>Quantity</th>
                        <th>Price ($)</th>
                    </tr>
                </thead>
                <tbody style="background-color: cyan">
                    <xsl:for-each select="//product">
                        <tr>
                            <td>
                                <xsl:value-of select="name" />
                            </td>
                            <td style="text-align: center;">
                                <xsl:value-of select="quantity" />
                            </td>
                            <td style="text-align: center;">
                                <xsl:value-of select="subtotal" />
                            </td>
                        </tr>
                    </xsl:for-each>
<!--                    <tr style="background-color: cornsilk">
                        <td></td>
                        <td style="text-align: center;">Delivery charges</td>
                        <td style="text-align: center;">
                            <xsl:value-of select="//charges" />
                        </td>
                    </tr>-->
                    <tr style="font-weight: bold;color: blanchedalmond;background-color: darkgoldenrod;">
                        <td></td>
                        <td style="text-align: center;">Total </td>
                        <td style="text-align: center;">
                            <xsl:value-of select="//total" />
                        </td>
                    </tr>
                    <tr>
                        <td>Date processed</td>
                        <td style="text-align: center;font-weight: bold;">
                            <xsl:value-of select="//dateprocess" />
                        </td>
                        <td></td>
                    </tr>
                </tbody>
            </table>

        </div>
    </xsl:template>

</xsl:stylesheet>
